package com.zhang.spring.boot.mongo;

import java.util.List;

public interface MongoRepository<T> {

    <S extends T> List<S> saveAll(Iterable<S> entities);

    List<T> findAll();


    <S extends T> S insert(S entity);

    <S extends T> List<S> insert(Iterable<S> entities);

   /* <S extends T> List<S> findAll(Example<S> example);

    <S extends T> List<S> findAll(Example<S> example, Sort sort);*/
}
